package com.example.emos.wx.service;

import cn.hutool.json.JSONObject;
import com.example.emos.wx.db.pojo.TbUser;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

public interface UserService {
    public int registerUser(String registerCode,String code,String nickname,String photo);
    public Set<String> searchUserPermissions(int userId);
    /*
    * 根据传过来的code【临时授权字符串】找用户的id
    * */
    public Integer login(String code);
    public TbUser searchById(int userId);
    public String searchUserHiredate(int userId);
//    查询用户信息
    public HashMap searchUserSummary(int userId);

    public ArrayList<HashMap> searchUserGroupByDept(String keyword);

    public ArrayList<HashMap> searchMembers(List param);

    public List<HashMap> selectUserPhotoAndName(List param);

    public String searchMemberEmail(int id);

    public void insertUser(HashMap param);

    public JSONObject searchUserContactList();

    public HashMap searchUserInfo(int userId);

    public int updateUserInfo(HashMap param);
}
